package cn.edu.scau.dropship.ServiceImpl;

import cn.edu.scau.dropship.entity.Address;
import cn.edu.scau.dropship.entity.AddressExample;
import cn.edu.scau.dropship.mapper.AddressMapper;
import cn.edu.scau.dropship.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AddressServiceImpl implements AddressService {
    @Autowired
    private AddressMapper addressMapper;

    @Override
    public long countByExample(AddressExample example) {
        return 0;
    }

    @Override
    public int deleteByExample(AddressExample example) {
        return 0;
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return addressMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Address record) {
        return addressMapper.insert(record);
    }

    @Override
    public int insertSelective(Address record) {
        return 0;
    }

    @Override
    public List<Address> selectByExample(AddressExample example) {
        return addressMapper.selectByExample(example);
    }

    @Override
    public Address selectByPrimaryKey(Integer id) {
        return addressMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(Address record, AddressExample example) {
        return 0;
    }

    @Override
    public int updateByExample(Address record, AddressExample example) {
        return 0;
    }

    @Override
    public int updateByPrimaryKeySelective(Address record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(Address record) {
        return addressMapper.updateByPrimaryKey(record);
    }
}